﻿@model trangbaocao.Models.FuelStationsModel
<div class="container_12">       
    <div class="grid_12">            
        <div class="module">
                <h2 align="right"><span align="right"><a href="@Url.Action("Fuel_Stations_Index", "Fuel", new { @ViewBag.thang})">Quay lại</a></span></h2>                         
                    <div class="module-body">
                    @using (Html.BeginForm("Fuel_Stations_Update", "Fuel", FormMethod.Post, new { id = "Fuel_Stations_Update" }))
                    {                      
                        <div align="center">
                            <h3>CẬP NHẬT THÔNG TIN ĐIỆN TIÊU THỤ TRONG THÁNG @Model.thang NĂM @Model.nam</h3>
                            <div class="account" align="center"> 
                            <img src="@Url.Content("~/Content/Body/Images/Body_Images/Edit_Station.png")" width="12%" />
                            </div>
                        </div>
                        if (TempData["msg"] != null)
                        {                            
                            <span class="notification n-error">@TempData["msg"]</span>
                        } 
                        <p style="width:30%; float:left"></p>
                        <table>                                 
                            <div class="align-center" style="width:50%; float:left">
                                <p align="center">
                                    <label style="width:55%; text-align:left;">Tên trạm: <b>@Html.DisplayFor(model => model.name)</b></label>                                                                      
                                </p> 
                                <p align="center">
                                    <label style="width:55%; text-align:left;">Địa chỉ: <b>@Html.DisplayFor(model => model.dia_chi)</b></label>                                                                      
                                </p>
                                <p align="center">
                                    <label style="width:55%; text-align:left;">Trung tâm: <b>@Html.DisplayFor(model => model.ten_trung_tam)</b></label>                                                                      
                                </p> 
                                <div class="select_date" align="center">
                                    <label style="width:55%; text-align:left;">Tiền điện tháng (đ):</label>
                                        <p align="center" style="width:55%; text-align:left;">
                                            @Html.TextBoxFor(model => model.tong_tien, new { maxlength = 8}) 
                                            <font color="red">(*)</font>                       
                                        </p>
                                        <p style="width:55%; text-align:left">@Html.ValidationMessageFor(model => model.tong_tien) </p>
                                        
                                </div> 
                                <div class="select_date" align="center">
                                    <label style="width:55%; text-align:left;">Số KW tiêu thụ:</label>
                                        <p align="center" style="width:55%; text-align:left;">
                                            @Html.TextBoxFor(model => model.nhap_trong_thang, new { maxlength = 5 })    
                                            <font color="red">(*)</font>                    
                                        </p>
                                        <p style="width:55%; text-align:left">
                                            @Html.ValidationMessageFor(model => model.nhap_trong_thang) 
                                        </p>
                                </div>
                                @*<div class="select_date" align="center">
                                    <label style="width:55%; text-align:left;">Ngày nhập (Mặc định là ngày hiện tại nếu không nhập):</label>
                                    <p align="center" style="width:55%; text-align:left;">
                                        <input type="textbox" id="ngay_nhap" name="ngay_nhap" class="date" style="width:25%">
                                    </p>                        
                                </div>*@
                                <div align="center">
                                    <label style="width:55%; text-align:left;">Ghi chú:</label>
                                    <p align="center" style="width:55%; text-align:left">
                                         @Html.TextBoxFor(model => model.ghi_chu, new { @name = "ghi_chu", @class = "input-ghort", @style="width:60%" })

                                    </p>
                                </div>      
                                @Html.HiddenFor(model => model.stations_id)
                                @Html.HiddenFor(model => model.main_stations_id)      
                                      
                                @Html.HiddenFor(model => model.name)
                                @Html.HiddenFor(model => model.dia_chi)
                                @Html.HiddenFor(model => model.ten_trung_tam)
                                @Html.HiddenFor(model => model.nam)
                                @Html.HiddenFor(model => model.thang)      
                            </div>             
                      </table>                    
                        @*<div class="button" align="center">*@
                            <p style="width:40%; float:left"></p>
                            <p align="center" style="width:30%; text-align:left; float:left; margin-left:10px">
                                <input class="submit-green" type="submit" value="Cập nhật" /> 
                                <input class="submit-gray" type="reset" value="Hủy" />
                                @*<input class="submit-gray" type="button"  onclick="location.href='@Url.Action("Index", "User")'" value="Quay lại" />*@
                            </p>
                        @*</div>*@  
                    }
                </div> <!-- End .module-body -->
            </div>  <!-- End .module -->
        <div style="clear:both;"></div>
    </div> <!-- End .grid_12 --> 
    <div style="clear:both;"></div>
</div> <!-- End .container_12 -->

<script type="text/javascript">
    $(document).ready(function () {
        $("#date").datepicker({ dateFormat: 'dd/mm/yy' });
    });
</script>